package cn.edu.tjut.seriver.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.edu.tjut.bean.TeacherBean;
import cn.edu.tjut.dao.TeaDao;
import cn.edu.tjut.seriver.TeaService;

@Service("TeaInfoService")
public class TeaInfoService implements TeaService {

	@Resource
	private TeaDao teaDao;

	@Override
	public TeacherBean selectByteaIndex(String teaIndex) {
		// 根据主键查询教师信息
		return teaDao.selectByteaIndex(teaIndex);
	}

	@Override
	public TeacherBean selectByteaId(Long stuId) {
		// 根据教师ID查询教师信息
		return teaDao.selectByteaId(stuId);
	}

	@Override
	public List<TeacherBean> selectTeaInfoDynamic(TeacherBean teaB) {
		// 动态查询教师信息
		return teaDao.selectTeaInfoDynamic(teaB);
	}

	@Override
	public List<TeacherBean> selectAllteas() {
		// 查询所有教师信息
		return teaDao.selectAllteas();
	}

	@Override
	public int deleteByteaIndex(TeacherBean teaB) {
		// 删除教师信息
		return teaDao.deleteByteaIndex(teaB);
	}

	@Override
	public int updateByteaIndex(TeacherBean teaB) {
		// 修改教师信息
		return teaDao.updateByteaIndex(teaB);
	}

	@Override
	public int insertTeaInfo(TeacherBean teaB) {
		// 添加教师信息
		return teaDao.insertTeaInfo(teaB);
	}

}
